Software Development
Aspect-oriented Programming with Spring
Spring: Exploring Advices in Aspect-oriented Programming
Spring: Extending Applications with Aspect-oriented Programming

Spring: Exploring Advices in Aspect-oriented Programming

Course Number:
it_jpaopsdj_02_enus
Lesson Objectives

Spring: Exploring Advices in Aspect-oriented Programming

  • discover the key concepts covered in this course
  • create a project where aspects can be configured with an XML file
  • set aspects to run before and after certain methods in your application using before and after advices
  • describe the behavior of and recognize the use cases of the around advice in aspect-oriented programming
  • execute aspects after a method has executed successfully or when it throws an exception
  • implement different types of advices in your aspect-oriented application using Java annotations
  • identify the order in which advices will be applied to join point methods
  • identify the use cases of aspect-oriented programming and implement a logging feature in your application using this programing paradigm
  • summarize the key concepts covered in this course

Overview/Description
Aspect-oriented programming (AOP) allows significant, global functionality to be added to your application using a modular and non-intrusive method. The action taken before or after method execution is determined by a piece of code called the "advice." Use this course to practice working with different types of advices, starting with the before advice and after advice. Then, work with around advices, which run checks to determine whether a core operation should run at all and what goes on before and after its execution. Move on to use the after-throwing advice to set an action after an error has been thrown and the after-returning advice to determine the steps after a successful run of a method. Upon completing the course, you'll be able to attach different types of advices to aspects in an application.

Target

Prerequisites: none

Spring: Extending Applications with Aspect-oriented Programming

Course Number:
it_jpaopsdj_01_enus
Lesson Objectives

Spring: Extending Applications with Aspect-oriented Programming

  • discover the key concepts covered in this course
  • describe what aspect-oriented programming is and when it is applicable
  • recognize what mechanisms are available to implement aspect-oriented programming in Java
  • create and configure a project where aspect-oriented programming can be applied
  • define a method that can be set as an aspect in a Java application
  • execute a program with aspects and recognize how such aspects and pointcuts are related
  • recognize different ways to define pointcuts
  • set up aspects in an application using Java annotations
  • define pointcuts in your application that apply to methods in multiple classes
  • create pointcuts that have overlapping join points
  • configure a pointcut using the within designator in order to map to join points within a class or package
  • define pointcuts that are composed of other pointcuts
  • create a custom annotation in order to explicitly define the methods that must match a pointcut
  • summarize the key concepts covered in this course

Overview/Description
Using aspect-oriented programming (AOP), global properties of a program, such as logging, auditing, declarative transactions, security, and caching, can be added to your application after you've developed the core features. This course explores the core concepts of AOP before getting hands-on with one of its basic features, the pointcut. Examine the fundamental terminology and use cases of AOP before adding functionality to an application by defining and configuring a function (an aspect) to run before some core operations in your app. As you advance, practice different ways to define pointcuts (the set of core operations in your app) around which the new functionality or aspects need to be added. By the end of the course, you'll have a basic, working knowledge of AOP and pointcuts.

Target

Prerequisites: none

Close Chat Live